#include "StdAfx.h"
#include "iplineedit.h"

IPLineEdit::IPLineEdit(QWidget *parent)
   : QLineEdit(parent)
{
   QRegExp regExp("(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}");
   m_regExpValidator = new QRegExpValidator(regExp, this);
   setValidator(m_regExpValidator);
}

IPLineEdit::~IPLineEdit()
{

}
